﻿using System.Windows;
using System.Windows.Controls;
using ABCat.Core.Plugins.Catalog.FilteringLogics;

namespace ABCat.UI.WPF.UI
{
	/// <summary>
	/// Interaction logic for FilterUc.xaml
	/// </summary>
	public partial class RecordsFilterUc : UserControl
	{
		#region + Fields +

		// Using a DependencyProperty as the backing store for RecordsFilter.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty FilteringLogicStandardProperty = 
						DependencyProperty.Register("FilteringLogicStandard", typeof(IFilteringLogicPlugin), typeof(RecordsFilterUc), new PropertyMetadata(null));

		#endregion
		#region + Properties +

		public IFilteringLogicPlugin FilteringLogicStandard
		{
			get { return (IFilteringLogicPlugin)GetValue(FilteringLogicStandardProperty); }
			set
			{
				SetValue(FilteringLogicStandardProperty, value);
				DataContext = value;
			}
		}

		#endregion
		#region + Ctor +

		public RecordsFilterUc()
		{
			InitializeComponent();
		}

		#endregion
	}
}